﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dukou.Security.Domain;

namespace Dukou.Security.BizService
{
    /// <summary>
    /// 
    /// </summary>
    public interface IPassportService
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        LogonInfo Logon(string userName, string password);

        /// <summary>
        /// 注销
        /// </summary>
        void Logout();

        /// <summary>
        /// 获取登录信息
        /// </summary>
        /// <param name="identifier"></param>
        /// <returns></returns>
        LogonInfo FindByIdentifier(string identifier);
    }
}
